﻿using System;
using MbUnit.Framework;
// TODO: Write tests for the Controller class

namespace ZSafeProjectNameZ.Tests
{
    /// <summary>
    /// Summary description for ZParentProjectNameZControllerFixture
    /// </summary>
    [TestFixture]
    public class ZParentProjectNameZControllerFixture
    {
        //private DateTime createdDate = new DateTime(MockHelper.createdDateYear, MockHelper.createdDateMonth, MockHelper.createdDateDay);
        //IDataProvider dataProvider;
        //IZParentProjectNameZController ZParentProjectNameZController;

        //public ZParentProjectNameZControllerFixture()
        //{
        //    dataProvider = new MockDataProvider();
        //    ZParentProjectNameZController = new ZParentProjectNameZController(dataProvider);
        //}

        //private TestContext testContextInstance;

        ///// <summary>
        /////Gets or sets the test context which provides
        /////information about and functionality for the current test run.
        /////</summary>
        //public TestContext TestContext
        //{
        //    get
        //    {
        //        return testContextInstance;
        //    }
        //    set
        //    {
        //        testContextInstance = value;
        //    }
        //}

        //[TestMethod]
        //[Description("Add a ZParentProjectNameZInfo with the concrete controller using a MockDataProvider")]
        //[Owner("Philip Beadle")]
        //public void AddZParentProjectNameZController()
        //{
        //    ZParentProjectNameZInfo ZParentProjectNameZInfo = MockHelper.CreateZParentProjectNameZInfo();
        //    int itemId = ZParentProjectNameZController.AddZParentProjectNameZ(ZParentProjectNameZInfo);

        //    Assert.AreEqual<int>(MockHelper.ValidZParentProjectNameZInfoId, itemId);
        //}

        //[TestMethod]
        //[Description("Add a ZParentProjectNameZInfo, no content with the concrete controller using a MockDataProvider")]
        //[Owner("Philip Beadle")]
        //public void AddZParentProjectNameZNoContentController()
        //{
        //    ZParentProjectNameZInfo ZParentProjectNameZInfo = MockHelper.CreateZParentProjectNameZInfo();
        //    ZParentProjectNameZInfo.Content = string.Empty;
        //    int itemId = ZParentProjectNameZController.AddZParentProjectNameZ(ZParentProjectNameZInfo);

        //    Assert.AreEqual<int>(DotNetNuke.Common.Utilities.Null.NullInteger, itemId);
        //}

        //[TestMethod]
        //[Description("Update a ZParentProjectNameZInfo with the concrete controller using a MockDataProvider")]
        //[Owner("Philip Beadle")]
        //public void UpdateZParentProjectNameZController()
        //{
        //    ZParentProjectNameZInfo ZParentProjectNameZInfo = MockHelper.CreateZParentProjectNameZInfo();
        //    ZParentProjectNameZController.UpdateZParentProjectNameZ(ZParentProjectNameZInfo);
        //}

        //[TestMethod]
        //[Description("Update a ZParentProjectNameZInfo, no content with the concrete controller using a MockDataProvider")]
        //[Owner("Philip Beadle")]
        //[ExpectedException(typeof(ArgumentException), "No Content")]
        //public void UpdateZParentProjectNameZNoContentController()
        //{
        //    ZParentProjectNameZInfo ZParentProjectNameZInfo = MockHelper.CreateZParentProjectNameZInfo();
        //    ZParentProjectNameZInfo.Content = string.Empty;
        //    ZParentProjectNameZController.UpdateZParentProjectNameZ(ZParentProjectNameZInfo);
        //}

        //[TestMethod]
        //[Description("Retrieves a ZParentProjectNameZInfo from the concrete controller using a MockDataProvider")]
        //[Owner("Philip Beadle")]
        //public void GetZParentProjectNameZController()
        //{
        //    ZParentProjectNameZInfo ZParentProjectNameZInfo = ZParentProjectNameZController.GetZParentProjectNameZ(MockHelper.ModuleId, MockHelper.ValidZParentProjectNameZInfoId);

        //    Assert.AreEqual<string>(MockHelper.content, ZParentProjectNameZInfo.Content);
        //    Assert.AreEqual<int>(MockHelper.createdByUser, ZParentProjectNameZInfo.CreatedByUser);
        //    Assert.AreEqual<string>(MockHelper.createdByUserName, ZParentProjectNameZInfo.CreatedByUserName);
        //    Assert.AreEqual<DateTime>(createdDate, ZParentProjectNameZInfo.CreatedDate);
        //}

        //[TestMethod]
        //[Description("Retrieves ZParentProjectNameZInfos from the concrete controller using a MockDataProvider")]
        //[Owner("Philip Beadle")]
        //public void GetZParentProjectNameZsController()
        //{
        //    List<ZParentProjectNameZInfo> ZParentProjectNameZInfos = ZParentProjectNameZController.GetZParentProjectNameZs(MockHelper.ModuleId);

        //    Assert.AreEqual<int>(2, ZParentProjectNameZInfos.Count);
        //}

        //[TestMethod]
        //[Description("Deletes a ZParentProjectNameZInfo with the concrete controller using a MockDataProvider")]
        //[Owner("Philip Beadle")]
        //public void DeleteZParentProjectNameZController()
        //{
        //    ZParentProjectNameZController.DeleteZParentProjectNameZ(MockHelper.ModuleId, MockHelper.ValidZParentProjectNameZInfoId);
        //}
    }


}
